package com.bw.find_module.userdetail;

import android.view.View;

import androidx.viewbinding.ViewBinding;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.bw.common.entity.LiveDataEntity;
import com.bw.common.entity.RoomUserEntity;
import com.bw.common.mvvm.view.BaseActivity;
import com.bw.find_module.databinding.ActivityUserdetailBinding;
import com.bw.find_module.entity.RecommendValuesEntity;
import com.bw.glide_sdk.LoadImage;

@Route(path = "/find/userdetailactivity")
public class UserDetailActivity extends BaseActivity<ActivityUserdetailBinding,UserDetailViewModel> {

    @Autowired(name = "recommentEntity")
    public RecommendValuesEntity recommendValuesEntity;

    @Override
    public View bindLayout() {
        return v.getRoot();
    }

    @Override
    public ViewBinding initBinding() {
        return ActivityUserdetailBinding.inflate(inflater);
    }

    @Override
    public void initView() {
        ARouter.getInstance().inject(this);
        if (recommendValuesEntity!=null){
            v.userDetailAtrist.setText(recommendValuesEntity.title);
            v.userDetailDesc.setText(recommendValuesEntity.intro);
            LoadImage.LoadCirImg(recommendValuesEntity.icon,v.userDetailArtistImg);
        }
    }

    @Override
    public void initData() {

    }

    @Override
    public String getClassNames() {
        return this.getClass().getName();
    }

    @Override
    protected void handleMessage(LiveDataEntity entity) {

    }

}
